package com.example.wuyeguanli.entiy;

// 重构: 字段已根据后端更新，并将LocalDateTime改为String以兼容旧版Android API
public class VisitInfo {

    private String visitorId;
    private String visitorName;
    private String visitorPhone;
    private String visitingRoomNumber;
    private String visitPurpose;
    private String visitStartTime; // LocalDateTime -> String
    private String visitEndTime;   // LocalDateTime -> String
    // private String qrCodeId; // 删除
    private String qrCodePayload; // 新增

    public VisitInfo(String visitorId, String visitorName, String visitorPhone, String visitingRoomNumber, String visitPurpose, String visitStartTime, String visitEndTime, String qrCodePayload) {
        this.visitorId = visitorId;
        this.visitorName = visitorName;
        this.visitorPhone = visitorPhone;
        this.visitingRoomNumber = visitingRoomNumber;
        this.visitPurpose = visitPurpose;
        this.visitStartTime = visitStartTime;
        this.visitEndTime = visitEndTime;
        this.qrCodePayload = qrCodePayload;
    }

    // Getters 和 Setters
    public String getQrCodePayload() {
        return qrCodePayload;
    }
    public void setQrCodePayload(String qrCodePayload) {
        this.qrCodePayload = qrCodePayload;
    }
    public String getVisitorId() {
        return visitorId;
    }

    public void setVisitorId(String visitorId) {
        this.visitorId = visitorId;
    }

    public String getVisitorName() {
        return visitorName;
    }

    public void setVisitorName(String visitorName) {
        this.visitorName = visitorName;
    }

    public String getVisitorPhone() {
        return visitorPhone;
    }

    public void setVisitorPhone(String visitorPhone) {
        this.visitorPhone = visitorPhone;
    }

    public String getVisitingRoomNumber() {
        return visitingRoomNumber;
    }

    public void setVisitingRoomNumber(String visitingRoomNumber) {
        this.visitingRoomNumber = visitingRoomNumber;
    }

    public String getVisitPurpose() {
        return visitPurpose;
    }

    public void setVisitPurpose(String visitPurpose) {
        this.visitPurpose = visitPurpose;
    }

    public String getVisitStartTime() {
        return visitStartTime;
    }

    public void setVisitStartTime(String visitStartTime) {
        this.visitStartTime = visitStartTime;
    }

    public String getVisitEndTime() {
        return visitEndTime;
    }

    public void setVisitEndTime(String visitEndTime) {
        this.visitEndTime = visitEndTime;
    }
}